//282A
#include<string>
#include<iostream>
using namespace std;

int main(){
	int n;
	cin>>n;
	int ans=0;
	while(n--){
		string a;
		cin>>a;
		for(int i=0;i<3;i++){
			if(a[i]=='X')continue;
			if(a[i]=='+'&&i+1<=3&&a[i+1]=='+')ans++;
			if(a[i]=='-'&&i+1<=3&&a[i+1]=='-')ans--;
		}
	}
	cout<<ans<<endl;
} 
